<template id="zi"><div class="chat-input"><input v-model="xx" type="text" placeholder="请输入消息..."> <button @click="fs()">发送</button></div></template>
<script src="js/vue.js"></script>
<script>
const zi={
		template:'#zi',
		data(){
			return{
			xx:'',
			}
		},
		methods:{
			fs(){
				this.$emit("ff",this.xx)
			}
		}
	}
</script>